package cn.aylog.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;

@Controller
@RequestMapping("file")
public class FileController {

    @RequestMapping("upload")
    public String upload(MultipartFile file) {
        System.out.println(file.getName() + "--" + file.getSize());
        return "success";
    }
}
